﻿using AutoMapper;
using T_Rbac_APi.Application.Command.DepartmentCommand;
using T_Rbac_APi.Application.Command.Jobs;
using T_Rbac_APi.Application.Command.Operator;
using T_Rbac_APi.Application.Command.Rule;
using T_Rbac_Demain;

namespace T_Rbac_APi.AutoMapper
{
    public class PublicAutomapper:Profile
    {
        public PublicAutomapper()
        {
            CreateMap<RuleAddCommand,Rule>().ReverseMap();
            CreateMap<RuleUpdateCommand, Rule>().ReverseMap();
            CreateMap<DepartmentAddCommand,Dapartment>().ReverseMap();
            CreateMap<DepartmentUpdateCommand, Dapartment>().ReverseMap();
            CreateMap<OperatorAddCommand, Operator>().ReverseMap();
            CreateMap<OperatorUpdateCommand,Operator>().ReverseMap();
            CreateMap<JobAddCommand, Job>().ReverseMap();
            CreateMap<JobUpdateCommand,Job>().ReverseMap();
        }
    }
}
